<?php
$this->load->helper('html');
$active = array(
    'home/index' => '',
    'home/about' => '',
    'home/contact' => '',
    'portfolio/index' => '',
);
$active[$this->uri->uri_string()] = 'active';
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="shortcut icon" href="<?= $path ?>/img/logo.png">

        <title><?= $title; ?></title>

        <!-- Bootstrap core CSS -->
        <!--<link href="css/bootstrap.min.css" rel="stylesheet">-->

        <!-- Custom styles for this template -->
        <link href="<?= $path ?>/css/style.css" rel="stylesheet">

        <!-- Resources -->
        <link href="<?= $path ?>/fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet">
        <link href="<?= $path ?>/css/animate.css" rel="stylesheet">
        <link href="<?= $path ?>/css/lightbox.css" rel="stylesheet">
        <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'>

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>

        <!-- Navigation -->
        <div class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <?php
                    $img = array(
                        'src' => $path . '/img/logo.png',
                        'alt' => 'logo'
                    );

                    echo anchor('home/index', img($img), array('id' => 'logo', 'class' => 'navbar-brand'));
                    ?>
                </div>
                <div class="collapse navbar-collapse">
                    <ul id="menu" class="nav navbar-nav navbar-right">
                        <li class="<?= $active['home/index']; ?>">
                            <?= anchor('home/index', 'Home'); ?>
                        </li>
                        <li class="<?= $active['portfolio/index']; ?>">
                            <?= anchor('portfolio/index', 'Portfolio'); ?>
                        </li>
                        <li class="<?= $active['home/about']; ?>">
                            <?= anchor('home/about', 'About Us'); ?>
                        </li>
                        <li class="<?= $active['home/contact']; ?>">
                            <?= anchor('home/contact', 'Contact'); ?>
                        </li>
                    </ul>
                    <!-- Mobile Search -->
                    <form class="navbar-form navbar-right visible-xs" role="search">
                        <div class="input-group">
                            <input type="text" class="form-control" placeholder="Search">
                            <span class="input-group-btn">
                                <button class="btn btn-red" type="button">Search!</button>
                            </span>
                        </div>
                    </form>
                </div><!--/.nav-collapse -->
            </div>
        </div> <!-- / .navigation -->

        <!-- Wrapper -->
        <div class="wrapper">
